<template>
    <div id="background">
        <el-container>
            <el-header id="lxdtkHead">
                <el-row type="flex" style="height:80%;display:flex;align-items: flex-end">
                    <el-col :xs="3" :sm="3" :md="3" class="imgCol">
                        <img v-bind:src="backIcon" class="backSize" @click="back" />
                    </el-col>
                    <el-col :xs="6" :sm="6" :md="6" :offset="6" class="imgCol">
                        <span class="titleSize">答题卡</span>
                    </el-col>
                </el-row>
            </el-header>
            <el-main id="lxdtkMain">
                <el-scrollbar>
                <div v-for="(value,key) in tiMuNum" :key="key">
                    <el-col :xs="4" :sm="4" :md="4" class="imgCol">
                        <div v-show="value.yiZuo" class="yiZuo imgCol">
                            <div>
                                <span>{{value.tiHao}}</span>
                                <img v-show="value.biaoJi" :src="biaoJi" class="biaoJiFu" style="height:10px;float: right;">
                            </div>
                        </div>
                        <div v-show="!value.yiZuo" class="weiZuo imgCol">
                            <span>{{value.tiHao}}</span>
                        </div>
                    </el-col>
                </div>
                </el-scrollbar>
            </el-main>
        </el-container>
    </div>    
</template>

<script>
import backIcon from '../../assets/img/mine/back.png'
import biaoJi from '../../assets/img/tiKu/biaoJi.png'
export default {
    data(){
        return{
            tiMuNum:[
                {
                    tiHao:1,
                    yiZuo:true,
                    biaoJi:false,
                },
                {
                    tiHao:2,
                    yiZuo:true,
                    biaoJi:true,
                },
                {
                    tiHao:3,
                    yiZuo:false,
                    biaoJi:false,
                },
                {
                    tiHao:4,
                    yiZuo:false,
                    biaoJi:false,
                },
                {
                    tiHao:5,
                    yiZuo:true,
                    biaoJi:false,
                },
                {
                    tiHao:6,
                    yiZuo:false,
                    biaoJi:false,
                },
                {
                    tiHao:7,
                    yiZuo:false,
                    biaoJi:false,
                },
            ],
            biaoJi:biaoJi,
            backIcon:backIcon,
            normalHeight:document.documentElement.clientHeight,
        }
    },
    mounted(){
        var bg = document.getElementById("background");
       // this.normalHeight=document.documentElement.clientHeight;
        console.log("height:"+this.normalHeight);
        bg.style.height = this.normalHeight+"px";
        bg.style.backgroundColor = "#FFFFFF"
        bg.style.margin = "0px";

        var head=document.getElementById("lxdtkHead");
        var headHeight=this.normalHeight/30 *4 ;
        console.log("headHeight:"+headHeight);
        head.style.height=headHeight+"px";

        var main=document.getElementById("lxdtkMain");
        var mainHeight=this.normalHeight/30 *25 ;
        main.style.height=mainHeight+"px";
    },
    methods:{
        back(){
            console.log("back:");
            this.$router.go(-1);
        },
    }
}
</script>

<style>
.imgCol{
    display:flex;
    align-items:center;
    justify-content:center
}
.yiZuo{
    width:30px;
    height:30px;
    border-radius: 50%;
    background-color: #53cdf5;
    color: #fff; 
    border: #53cdf5 1px solid;
    margin-top:15px;
}
/* .biaoJiFu{
  height:10px;
  float: right;
} */
.weiZuo{
    width:30px;
    height:30px;
    border-radius: 50%;
    background-color:#fff;
    color: #53cdf5;
    border: #53cdf5 1px solid; 
    margin-top:15px;
}
#lxdtkMain{
    padding: 15px;
    background: #FFFFFF;
}
#lxdtkHead {
  background-color: #53cdf5;
}
.backSize{
    height: 26px;
}
.titleSize{
    font-size:1.125em;
    color:#ffffff
}
@media screen and (max-height: 600px){
  .backSize{
      height: 22px;
  }
  .titleSize{
      font-size: 1em;
  }
}
</style>
